package com.vast.admin.api.cietac.feign;

import com.vast.admin.api.cietac.entity.CietacToken;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = "${cietac.apiUrl}", name = "cietacToken")
public interface CietacTokenApi {

    @PostMapping(value = "/oauth/token")
    CietacToken token(@RequestParam("client_id") String client_id, @RequestParam("client_secret") String client_secret, @RequestParam("grant_type") String grant_type);

}
